package com.neusoft.mid.msf.common.msg;

import com.neusoft.mid.msf.common.constant.ApiCode;
import lombok.Data;

/**
 * @program: pangu
 * @description: 框架的响应对象基类
 * @author: fengjd
 * @create: 2022-07-21 20:14
 **/
@Data
public class BaseResponse {

    /**
     * 状态码: 200代码请求处理成功
     */
    private int status = ApiCode.STATUS_SUCCESS.getCode();

    /**
     * 错误信息: 只有处理失败时才会有值
     */
    private String message;

    public BaseResponse(int status, String message) {
        this.status = status;
        this.message = message;
    }

    public BaseResponse() {
    }
}
